package com.itheima.homework;

import java.util.Scanner;

/*
 键盘录入一个字符串，使用程序实现在控制台遍历该字符串。
 */
public class Text3 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入数据:");
        String arr = sc.nextLine();
        char[] arr1 = arr.toCharArray();
        for (int i = 0; i < arr1.length; i++) {
            char a = arr1[i];
            System.out.println(a);
        }

    }
}
